<div class="slider-wrapper">
    <?php 
        $loop = new WP_Query('post_type=wpsc-product&posts_per_page=5&meta_key=wpcf-carrousel_product&meta_value=1');
        if ($loop->have_posts()) :
        $count = 0;
    ?>
	<div id="slider">
	    <?php 
	        while ($loop->have_posts()) : 
	            $loop->the_post();
	            $count ++; 
        ?> 
		<div class="item">
		    <a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>">
		        <?php the_post_thumbnail('full'); ?>
		    </a>
		</div>
		<?php endwhile; ?>
	</div>
	<ul id="control-nav">
	    <?php for ($i = 1; $i <= $count; $i++) : ?>
		    <li <?php if ($i == 1) echo 'class="active"'; ?>><a href="javascript:void(0);" title=""><?php echo $i; ?></a></li>
		<?php endfor; ?>
	</ul>
	<?php endif; ?>
</div>